/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.cx1.service.api;

import java.util.List;
import org.cx1.model.Blog;
import org.cx1.model.utils.ServiceResponse;

/**
 *
 * @author ECH
 */
public interface IBlogService {    
    
    public ServiceResponse<String> create(Blog blog);
              
    public ServiceResponse<Blog> read(String id);
        
    public ServiceResponse<List<Blog>> readAll(int offset, int limit);
        
    public ServiceResponse<Boolean> update(Blog blog);
         
    public ServiceResponse<Boolean> delete(String id);
        
    public ServiceResponse<List<Blog>> readAllByType(int offset, int limit, String blogTypeID);
        
}
